public class Test {

    public static void main(String[] args) {
        int id = 20;

        new Test(){
            public static int age = 10;
            public String name = "ben";

            public void func(){

                System.out.println("age = " + age);
            }
        };
    }
    public static void main2(String[] args) {
        String s1 = "bit";
        String s2 = "bit";
        System.out.println(s1 == s2);

        String s3 = new String("bite");
        String s4 = new String("bite");

        System.out.println(s3 == s4);
    }
    public static void main1(String[] args) {
        String s1 = "hello world";
        System.out.println(s1);

        String s2 = new String("hello world");
        System.out.println(s2);

        System.out.println(s1 == s2);

        char[] array = {'w', 'o', 'r', 'l', 'd'};
        String s3 = new String(array);
        System.out.println(s3);

        byte[] bytes = {97,100,98,99};
        String s4 = new String(bytes);
        System.out.println(s4);
    }
}
